package com.hube.platform.tenant.exception;

/**
 * @author : Aaron
 * @date : 2022/6/10
 */
public enum ServerError implements IError {
    DB_CONNECT_ERROR(6001, "数据库连接异常"),
    DB_CONFIGURE_ERROR(6002, "数据库配置异常"),
    DATASOURCE_CREATE_ERROR(6101, "数据源创建异常"),
    URL_RESOLVE_ERROR(7001, "URL解析异常"),
    DISABLE_ERROR(8001, "当前租户已被禁用"),
    ;
    private int code;
    private String message;


    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }

    ServerError(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
